#if !defined(AFX_SETBAR_H__814B6BE5_C793_4D1B_877F_118BE343AB7F__INCLUDED_)
#define AFX_SETBAR_H__814B6BE5_C793_4D1B_877F_118BE343AB7F__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SetBar.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CSetBar dialog

#include "ToolCompensation.h"
#include "ProcessPara.h"

#define  EMUMOVEING 1;
#define  EMUPAUSE   2;
#define  EMUSTOP    3;

class CSetBar : public CDialogBar
{
// Construction
public:

	CString m_tooltype;
	int m_nCircle;
	int in_compensation;
	int out_compensation;
	int m_sorn;
	int m_nSpeedScale;

public:
	void SetSorN();
	void OnUpdateButton(CCmdUI * pCmdUI);

	CSetBar(CWnd* pParent = NULL);   // standard constructor

public:
	BOOL m_bFollowLive;

//    CToolControl toolcontorl;

// Dialog Data
	//{{AFX_DATA(CSetBar)
	enum { IDD = IDD_DIALOGBAR };
	//}}AFX_DATA

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSetBar)
	public:
	virtual BOOL DestroyWindow();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

    CToolCompensation toolcompensation;
	CProcessPara processpara;
	CDC*pdc;

	BOOL isInit;
	// Generated message map functions
	//{{AFX_MSG(CSetBar)
	afx_msg void OnToolcomp();
	afx_msg void OnWorking();
	afx_msg void OnPauseorcoutinue();
	afx_msg void OnShun();
	afx_msg void OnNi();
	afx_msg void OnOutlefttoolcomp();
	afx_msg void OnOutrihttoolcomp();
	afx_msg void OnInlefttoolcomp();
	afx_msg void OnInrighttoolcomp();
	afx_msg void OnEmulation();
	afx_msg void OnMotionstop();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnBackworkpoint();
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnBackorigpoint();
	afx_msg void OnBackzeropoint();
	afx_msg void OnEmupause();
	afx_msg void OnSawormillwork();
	afx_msg void OnMixsawandmill();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SETBAR_H__814B6BE5_C793_4D1B_877F_118BE343AB7F__INCLUDED_)
